# -*- coding: utf-8 -*-
from gameCMS.main.sampleapp.messages import *
from django.core.mail import send_mail, send_mass_mail 
main_email="boris.z.077@gmail.com"
site2="http://goomly.com:8003"
def email_send(login1,pssowr,emails,gen):
    mess=email_mms['mss']+email_mms['datayou']+site2+email_mms['lg']
    mess= mess+' '+login1
    mess= mess+email_mms['pss']
    mess=mess+' '+pssowr	
    mess=mess+email_mms['gen']
    mess=mess+site2+'/activate/?email3='+emails+'&login='+login1+'&gen='+gen
    mess=mess+email_mms['mistake']
    send_mail(email_mms['head'],mess,main_email,[emails]);
   # message1 = ('Subject here', 'Here is the message', 'from@example.com', ['boris_z.07@mail.ru', 'borisz007@yandex.ru'])
   # message2 = ('Another Subject', 'Here is another message', 'from@example.com', ['borisz007@yandex.ru'])
   # send_mass_mail((message1, message2), fail_silently=False)

def email_rp(login1,pssowr,emails):
    mess=email_mms_r['mss']+pssowr 
    mess=mess+email_mms_r['mistake']
    send_mail(email_mms_r['head'],mess,main_email,[emails]);
